/*
 * @Author: guojinxin_hub 1907745233@qq.com
 * @Date: 2023-12-28 15:06:30
 * @LastEditors: guojinxin_hub 1907745233@qq.com
 * @LastEditTime: 2024-04-24 16:27:10
 * @FilePath: \yongqing-county\src\components\home\charts.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import * as echarts from 'echarts'

export const Option1 = {
    color: [
        new echarts.graphic.LinearGradient(0, 0, 0, 0, [
            { offset: 0, color: 'rgba(255, 97, 107, 1)' },
            { offset: 0.5, color: 'rgba(227, 51, 63, 1)' }
        ]),
        new echarts.graphic.LinearGradient(0, 1, 0, 0, [
            { offset: 0, color: 'rgba(129, 202, 255, 1)' },
            { offset: 1, color: 'rgba(36, 150, 255, 0.8)' }
        ])
    ],

    series: [
        {
            name: '抽查情况',
            type: 'pie',
            radius: ['94%', '80%'],
            avoidLabelOverlap: true,
            startAngle: 0,

            label: {
                show: false,
                position: 'center'
            },

            labelLine: {
                show: false
            },
            data: [
                {
                    value: 5,
                    name: '',
                    itemStyle: {
                        normal: {
                            label: {
                                show: false
                            },
                            labelLine: {
                                show: false
                            },
                            color: 'rgba(0, 0, 0, 0)',
                            borderColor: 'rgba(0, 0, 0, 0)',
                            borderWidth: 0
                        }
                    }
                },
                {
                    value: 100,
                    name: '已用车位'
                },
                {
                    value: 5,
                    name: '',
                    itemStyle: {
                        normal: {
                            label: {
                                show: false
                            },
                            labelLine: {
                                show: false
                            },
                            color: 'rgba(0, 0, 0, 0)',
                            borderColor: 'rgba(0, 0, 0, 0)',
                            borderWidth: 0
                        }
                    }
                },
                { value: 700, name: '剩余车位' },
                {
                    value: 5,
                    name: '',
                    itemStyle: {
                        normal: {
                            label: {
                                show: false
                            },
                            labelLine: {
                                show: false
                            },
                            color: 'rgba(0, 0, 0, 0)',
                            borderColor: 'rgba(0, 0, 0, 0)',
                            borderWidth: 0
                        }
                    }
                }
            ]
        }
    ]
}
